//
//  UIDeviceExtensions.swift
//  HospitalIOS
//
//  Created by 常超群的MacBookPro on 2021/9/7.
//

import Foundation
public extension UIDevice {
    /// 手机型号
    var ccq_iphoneDeviceModel: String {
        var systemInfo = utsname()
        uname(&systemInfo)
        let platform = withUnsafePointer(to: &systemInfo.machine.0) { ptr in
            return String(cString: ptr)
        }
        return platform
    }
}
